package com.itheima.pojo;

import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.annotation.write.style.ColumnWidth;
import cn.idev.excel.annotation.write.style.ContentRowHeight;
import cn.idev.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * 预约设置
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderSetting implements Serializable{

    private Integer id ;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty(value = "预约日期", index = 0)
    private LocalDate orderDate;//预约设置日期
    @ExcelProperty(value = "可预约人数", index = 1)
    private Integer number;//可预约人数
    private Integer reservations ;//已预约人数

}
